package org.nightrunner.d3.service;

import java.io.Serializable;
import java.util.List;

import org.nightrunner.d3.entity.Category;
import org.nightrunner.d3.model.IPaginationInfo;
import org.nightrunner.d3.model.PaginationModel;

/**
 * Equipment Service interface
 * 
 * @author NightRunner
 * @date 2012-7-26
 * @version 1.0
 */
public interface ICategoryService {

	String CATEGORY_ROOT_ID = "00000000000000000000000000000000";

	PaginationModel<List<Category>> getCategory();

	PaginationModel<List<Category>> getCategory(IPaginationInfo pagination);

	void deleteCategory(Category category);

	Category getCategory(String categoryId);

	Serializable addCategory(Category category);

	List<Category> getAllCategory();

	void updateCategory(Category category);

	public List<Category> getSuperCategoryChain(Category category);
}